package orders

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type LsOrderRouter struct {}

// InitLsOrderRouter 初始化 lsOrder表 路由信息
func (s *LsOrderRouter) InitLsOrderRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	lsOrderRouter := Router.Group("lsOrder").Use(middleware.OperationRecord())
	lsOrderRouterWithoutRecord := Router.Group("lsOrder")
	lsOrderRouterWithoutAuth := PublicRouter.Group("lsOrder")
	{
		lsOrderRouter.POST("createLsOrder", lsOrderApi.CreateLsOrder)   // 新建lsOrder表
		lsOrderRouter.DELETE("deleteLsOrder", lsOrderApi.DeleteLsOrder) // 删除lsOrder表
		lsOrderRouter.DELETE("deleteLsOrderByIds", lsOrderApi.DeleteLsOrderByIds) // 批量删除lsOrder表
		lsOrderRouter.PUT("updateLsOrder", lsOrderApi.UpdateLsOrder)    // 更新lsOrder表
	}
	{
		lsOrderRouterWithoutRecord.GET("findLsOrder", lsOrderApi.FindLsOrder)        // 根据ID获取lsOrder表
		lsOrderRouterWithoutRecord.GET("getLsOrderList", lsOrderApi.GetLsOrderList)  // 获取lsOrder表列表
	}
	{
	    lsOrderRouterWithoutAuth.GET("getLsOrderPublic", lsOrderApi.GetLsOrderPublic)  // lsOrder表开放接口
	}
}
